home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8196 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: goanna.cs.rmit.EDU.AU!not-for-mail
  2. From: rav@goanna.cs.rmit.EDU.AU (++           robin)
  3. Newsgroups: comp.lang.pl1,comp.lang.c
  4. Subject: Re: PL/I and C
  5. Date: 2 Mar 1996 19:12:30 +1100
  6. Organization: Comp Sci, RMIT, Melbourne, Australia
  7. Message-ID: <4h8vte$s76@goanna.cs.rmit.EDU.AU>
  8. References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <312CCEB2.4AB7@corp.dialog.com>     <4grhtv$s31@goanna.cs.rmit.EDU.AU> <4gt0tv$826@solutions.solon.com>     <4h11ub$njp@goanna.cs.rmit.EDU.AU> <TANMOY.96Feb28085159@qcd.lanl.gov>
  9. NNTP-Posting-Host: goanna.cs.rmit.edu.au
  10. X-Newsreader: NN version 6.5.0 #0 (NOV)
  11.  
  12.     tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) writes:
  13.  
  14.     >In article <4h11ub$njp@goanna.cs.rmit.EDU.AU>
  15.     >rav@goanna.cs.rmit.EDU.AU (++           robin) writes:
  16.     ><snip>
  17.     >r:     >strchr, strrchr, strspn, strcspn, strpbrk.
  18.     ><snip>
  19.     >r: As for the others (strrchr etc), they are not in all systems.
  20.  
  21.     >When one discusses languages, one ought to take the standard version
  22.     >of of the language, especially when the standard is not `brand
  23.     >new'.
  24.  
  25. ---there are several standards.  Which one do you mean?
  26.  
  27.     All of the functions mentioned are ANSI C functions, and saying
  28.     >that not all systems have them is like saying that not all fortran
  29.     >systems define the intrinsic `LEN'. Technically true,
  30.  
  31. ---so far as I know, all FORTRANs have LEN.
  32.  
  33.     >but completely irrelevant to any useful discussions about the language.
  34.  
  35.     >I am actually not concerned in your `language debate'. I just do not
  36.     >want false statements in comp.lang.c to pass unchallenged and thus
  37.     >confuse others.
  38.  
  39.     >r:     >>   There are several functions for centering text, & trimming
  40.     >r:     >>given characters from either or both ends of a string.
  41.     >r:     >sprintf.
  42.     >r: ---Not quite.  The above are non-I/O functions.
  43.  
  44.     >How is sprintf an I/O function? It inputs its parameters and outputs
  45.     >into the memory pointed to by one of its parameters?
  46.  
  47. ---sprint prints to memory.  However, it does nothing like the
  48. functions that I mentioned for centering text, and trimming given
  49. characters from either or both ends of a string.
  50.  
  51.    sprint would appear to be comparable in intent to PUT STRING.
  52.